import { Link } from '@brillout/docpress'
import { ConfigSpec } from '../../components'

<ConfigSpec
  env="Vite (development & build-time)"
  global
/>

```ts
// vite.config.ts

import type { UserConfig } from 'vite'
import vike from 'vike/plugin'

export default {
  // Make sure to include `vike()` and not `vike`
  plugins: [vike()]
} satisfies UserConfig
```

Vike's Vite plugin doesn't have any options. (All <Link href="/settings">Vike settings</Link> are defined in <Link href="/config#files">`+` files</Link>).

It should be loaded only in development or during build, see <Link href="/warning/setup" />.
